package com.jzrh.flashbee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzrh.flashbee.entity.FlashbeeUrl;
import com.jzrh.flashbee.entity.dto.UrlDTO;
import com.jzrh.flashbee.entity.vo.UrlVO;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Jince
 * @since: 2023.11.22 下午 09:21
 * @description:
 */
public interface IFlashbeeUrlService extends IService<FlashbeeUrl> {
    /**
     * 生成短网址
     * @param urlDTO dto
     * @param request 请求头
     * @return vo
     */
    UrlVO generateUrl(UrlDTO urlDTO, HttpServletRequest request);
    /**
     * 获取原始网址
     * @return 原始网址
     */
    String getOriginUrl(String shortUrl);
}
